package com.burst.reptile.modular.zp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 热搜榜
 * </p>
 *
 * @author wujin
 * @since 2020-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_heat")
public class ZpHeat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 热度榜
     */
    @TableId(value = "heat_id", type = IdType.AUTO)
    private Integer heatId;

    /**
     * 文章ID
     */
    private Long articleId;
    
    /**
     * 文章标题
     */
    private String title;

    /**
     * 发表时间
     */
    private LocalDateTime publishTime;

    /**
     * 浏览量
     */
    private Integer readSize;

    /**
     * 排序号
     */
    private Integer heatSort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    /**
     * 时间格式 为刚刚  几分钟前
     */
    @TableField(exist = false)
    private String time;


}
